package com.oneguy.server.log;

import org.apache.log4j.Logger;

public class Log {
	public static void d(String TAG, String string) {
		Logger logger = LoggerFactory.getIndependentLogger(TAG);
		logger.debug(string);
	}

	public static void e(String TAG, String string) {
		e(TAG, string, null);
	}

	public static void e(String TAG, String string, Throwable e) {
		Logger logger = LoggerFactory.getIndependentLogger(TAG);
		logger.error(string, e);
	}

	public static void w(String tag, String string) {
		Logger logger = LoggerFactory.getIndependentLogger(tag);
		logger.warn(string);
	}
	
	public static void i(String tag,String string){
		Logger logger = LoggerFactory.getIndependentLogger(tag);
		logger.info(string);
	}

}
